/*
 * Copyright 2025 arisgo@163.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.arisgo.cloud.auth.sys.entity;

import com.arisgo.cloud.web.model.NumberIdWithTime;
import com.mybatisflex.annotation.Table;

import lombok.Data;

/**
 * 用户第三方认证表
 *
 * @author Arisgo
 * @since 2024-06-12
 */
@Data
@Table("auth_user_oauth")
public class UserOauth extends NumberIdWithTime {

    /**
    * 租户ID
    */
    private String tenantId;
    /**
    * 第三方系统用户ID
    */
    private String uuid;
    /**
    * 用户ID
    */
    private Long userId;
    /**
    * 账号
    */
    private String username;
    /**
    * 用户名
    */
    private String nickname;
    /**
    * 头像
    */
    private String avatar;
    /**
    * 应用主页
    */
    private String blog;
    /**
    * 公司名
    */
    private String company;
    /**
    * 地址
    */
    private String location;
    /**
    * 邮件
    */
    private String email;
    /**
    * 备注
    */
    private String remark;
    /**
    * 性别
    */
    private String gender;
    /**
    * 来源
    */
    private String source;

    public static final String TENANT_ID = "tenant_id";
    public static final String UUID = "uuid";
    public static final String USER_ID = "user_id";
    public static final String USERNAME = "username";
    public static final String NICKNAME = "nickname";
    public static final String AVATAR = "avatar";
    public static final String BLOG = "blog";
    public static final String COMPANY = "company";
    public static final String LOCATION = "location";
    public static final String EMAIL = "email";
    public static final String REMARK = "remark";
    public static final String GENDER = "gender";
    public static final String SOURCE = "source";
}
